export function getURLParam(url: string, name: string) {
	const index = url.indexOf('?')
	if (index > -1) {
		const arr = url.substring(index + 1).split('&')
		for (const item of arr) {
			const entry = item.split('=')
			if (entry[0] === name) {
				return entry[1]
			}
		}
	}
	return null
}
